﻿if exists (select * from sysobjects where name like N'%sp_DMQuyenHoaDon_Delete%')
	drop proc sp_DMQuyenHoaDon_Delete
go
create proc sp_DMQuyenHoaDon_Delete
	@MaQuyenHoaDon varchar(50)
as
begin
	if not exists (select * from HoaDon where MaQuyenHoaDon = @MaQuyenHoaDon)
	begin
		delete from DMQuyenHoaDon where MaQuyenHoaDon = @MaQuyenHoaDon
	end
end